home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / programming / jpegv6 / jpeg-6 / makefile.sas < prev    next >
Encoding:
Makefile  |  1995-07-25  |  11.6 KB  |  243 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Amiga systems using SAS C 6.0 and up.
  4. # Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
  5.  
  6. # Read installation instructions before saying "make" !!
  7.  
  8. # The name of your C compiler:
  9. CC= sc
  10.  
  11. # You may need to adjust these cc options:
  12. # Uncomment the following lines for generic 680x0 version
  13. ARCHFLAGS= cpu=any
  14. SUFFIX=
  15.  
  16. # Uncomment the following lines for 68030-only version
  17. #ARCHFLAGS= cpu=68030
  18. #SUFFIX=.030
  19.  
  20. CFLAGS= nostackcheck data=near parms=register optimize $(ARCHFLAGS) \
  21.     ignore=104 ignore=304 ignore=306
  22. # ignore=104 disables warnings for mismatched const qualifiers
  23. # ignore=304 disables warnings for variables being optimized out
  24. # ignore=306 disables warnings for the inlining of functions
  25. # Generally, we recommend defining any configuration symbols in jconfig.h,
  26. # NOT via define switches here.
  27.  
  28. # Link-time cc options:
  29. LDFLAGS= SC SD ND BATCH
  30.  
  31. # To link any special libraries, add the necessary commands here.
  32. LDLIBS= LIB:scm.lib LIB:sc.lib
  33.  
  34. # Put here the object file name for the correct system-dependent memory
  35. # manager file.  For Amiga we recommend jmemname.o.
  36. SYSDEPMEM= jmemname.o
  37.  
  38. # miscellaneous OS-dependent stuff
  39. # linker
  40. LN= slink
  41. # file deletion command
  42. RM= delete quiet
  43. # library (.lib) file creation command
  44. AR= oml
  45.  
  46. # End of configurable options.
  47.  
  48.  
  49. # source files: JPEG library proper
  50. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  51.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  52.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  53.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  54.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  55.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  56.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  57.         jquant2.c jutils.c jmemmgr.c jmemansi.c jmemname.c jmemnobs.c \
  58.         jmemdos.c
  59. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  60. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  61.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  62.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  63. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  64. # files included by source files
  65. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  66.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  67. # documentation, test, and support files
  68. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  69.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  70.         coderules.doc filelist.doc change.log
  71. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  72.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  73.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  74.         makefile.vms makvms.opt
  75. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  76.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  77. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  78. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  79.         testimgp.jpg
  80. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  81.         $(OTHERFILES) $(TESTFILES)
  82. # library object files common to compression and decompression
  83. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  84. # compression library object files
  85. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
  86.         jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
  87.         jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
  88.         jfdctint.o
  89. # decompression library object files
  90. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
  91.         jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
  92.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  93.         jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  94. # These objectfiles are included in libjpeg.lib
  95. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  96. # object files for sample applications (excluding library files)
  97. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  98.         cdjpeg.o
  99. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  100.         cdjpeg.o
  101. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o
  102.  
  103.  
  104. all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
  105.  
  106. libjpeg.lib: $(LIBOBJECTS)
  107.     -$(RM) libjpeg.lib
  108.     $(AR) libjpeg.lib r $(LIBOBJECTS)
  109.  
  110. cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
  111.     $(LN) <WITH <
  112. $(LDFLAGS)
  113. TO cjpeg$(SUFFIX)
  114. FROM LIB:c.o $(COBJECTS)
  115. LIB libjpeg.lib $(LDLIBS)
  116. <
  117.  
  118. djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
  119.     $(LN) <WITH <
  120. $(LDFLAGS)
  121. TO djpeg$(SUFFIX)
  122. FROM LIB:c.o $(DOBJECTS)
  123. LIB libjpeg.lib $(LDLIBS)
  124. <
  125.  
  126. jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
  127.     $(LN) <WITH <
  128. $(LDFLAGS)
  129. TO jpegtran$(SUFFIX)
  130. FROM LIB:c.o $(TROBJECTS)
  131. LIB libjpeg.lib $(LDLIBS)
  132. <
  133.  
  134. rdjpgcom$(SUFFIX): rdjpgcom.o
  135.     $(LN) <WITH <
  136. $(LDFLAGS)
  137. TO rdjpgcom$(SUFFIX)
  138. FROM LIB:c.o rdjpgcom.o
  139. LIB $(LDLIBS)
  140. <
  141.  
  142. wrjpgcom$(SUFFIX): wrjpgcom.o
  143.     $(LN) <WITH <
  144. $(LDFLAGS)
  145. TO wrjpgcom$(SUFFIX)
  146. FROM LIB:c.o wrjpgcom.o
  147. LIB $(LDLIBS)
  148. <
  149.  
  150. jconfig.h: jconfig.doc
  151.     echo You must prepare a system-dependent jconfig.h file.
  152.     echo Please read the installation directions in install.doc.
  153.     exit 1
  154.  
  155. clean:
  156.     -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
  157.     -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
  158.     -$(RM) libjpeg.lib core testout*.*
  159.  
  160. test: cjpeg djpeg jpegtran
  161.     -$(RM) testout*.*
  162.     djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  163.     djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  164.     cjpeg -dct int -outfile testout.jpg  testimg.ppm
  165.     djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  166.     cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  167.     jpegtran -outfile testoutt.jpg testprog.jpg
  168.     cmp testimg.ppm testout.ppm
  169.     cmp testimg.gif testout.gif
  170.     cmp testimg.jpg testout.jpg
  171.     cmp testimg.ppm testoutp.ppm
  172.     cmp testimgp.jpg testoutp.jpg
  173.     cmp testorig.jpg testoutt.jpg
  174.  
  175.  
  176. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  181. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  182. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  189. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  195. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  196. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  197. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  198. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  199. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  200. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  201. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  202. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  203. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  206. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  207. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  208. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  209. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  210. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  211. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  212. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  213. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  214. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  215. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  216. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  217. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  218. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  219. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  220. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  221. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  222. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  223. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  224. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  225. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  226. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  227. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  228. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  229. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  230. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  231. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  232. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  233. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  234. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  235. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  236. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  237. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  238. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  239. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  240. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  241. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  242. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  243.